package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * lg_对战记录
 * </p>
 *
 * @author stylefeng123
 * @since 2018-02-06
 */
@TableName("lg_bettle_record")
public class BettleRecord extends Model<BettleRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 日志名称
     */
    private String logname;
    /**
     * 对战人
     */
    private Integer user1;
    /**
     * 对战人2
     */
    private Integer user2;
    /**
     * 对战类型
     */
    private Integer type;
    /**
     * 是否获胜
     */
    private Boolean succeed;
    /**
     * 获得经验值
     */
    private Integer xp;
    /**
     * 获得旗帜
     */
    private Integer flag;
    /**
     * 时间
     */
    private Date createtime;
    /**
     * 备注
     */
    private String remarks;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLogname() {
        return logname;
    }

    public void setLogname(String logname) {
        this.logname = logname;
    }

    public Integer getUser1() {
        return user1;
    }

    public void setUser1(Integer user1) {
        this.user1 = user1;
    }

    public Integer getUser2() {
        return user2;
    }

    public void setUser2(Integer user2) {
        this.user2 = user2;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Boolean getSucceed() {
        return succeed;
    }

    public void setSucceed(Boolean succeed) {
        this.succeed = succeed;
    }

    public Integer getXp() {
        return xp;
    }

    public void setXp(Integer xp) {
        this.xp = xp;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BettleRecord{" +
        "id=" + id +
        ", logname=" + logname +
        ", user1=" + user1 +
        ", user2=" + user2 +
        ", type=" + type +
        ", succeed=" + succeed +
        ", xp=" + xp +
        ", flag=" + flag +
        ", createtime=" + createtime +
        ", remarks=" + remarks +
        "}";
    }
}
